import request from '@/utils/request'
import type { IProduct } from '@/typings/interface'
import type { ICategoryStateRequest } from '@/typings/api'

export function queryProductById(_request: ICategoryStateRequest) {
  return request<IProduct, true>('/product/v1/query_by_cid', {
    data: {
      ..._request,
      productType: 'COURSE'
    },
    method: 'POST'
  })
}
